﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Entity;
using System.Linq;
using System.Text;
using DomainDriver.DomainModeling.Example.DomainObjects;

namespace DomainDriver.DomainModeling.Example
{
    public class ExampleModelDatabaseContext : DbContext
    {
        public const string DefaultConnectionName = "DomainDriver.DomainModeling.Example.DataSources.ExampleModelDatabaseContext";

        public ExampleModelDatabaseContext()
            : this(DefaultConnectionName)
        { }

        public ExampleModelDatabaseContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        { }

        public DbSet<DummyDomainObject> DummyDomainObjects { get; set; }
        public DbSet<DummyDomainObjectRelation> DummyDomainObjectRelations { get; set; }
        public DbSet<EnumerationDomainObject> EnumerationDomainObjects { get; set; }
        public DbSet<SingletonDomainObject> SingletonDomainObjects { get; set; }
    }
}